//
//  AllBaseViewController.h
//  parent
//
//  Created by IreWesT on 15/5/28.
//  Copyright (c) 2015年 ci123. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "MBProgressHUD.h"
#import "UIViewExt.h"
#import "UIUtils.h"
#import "UserDao.h"
#import "JsonUtil.h"
#import "PopUIManager.h"
#import "NetWorkManager.h"
#import "UIImageView+WebCache.h"
#import "Masonry.h"

@interface AllBaseViewController : UIViewController

//@property (nonatomic,retain)UIView *nav;
//@property (nonatomic,retain)UIView *navBackView;
//@property (nonatomic,retain)UILabel *navTitle;
@property (nonatomic,retain)MBProgressHUD *hud;

@property (nonatomic,assign)BOOL canBack;
@property (nonatomic,assign)CGFloat navHeight;

@property (nonatomic,copy)void (^centerNavBlock)(NSInteger index);

//HUD加载提示
- (void)showHud:(NSString *)title isDim:(BOOL)isDim;
- (void)showHudComplete:(NSString *)title success:(BOOL)success;
- (void)ShowExclaHud:(NSString *)title;
- (void)ShowExclaHud2:(NSString *)title;
- (void)hideHud;

- (UIButton *)createNavRightButton:(NSString *)showName target:(id)target action:(SEL)action;

- (void)backPage:(id)button;

- (UIView *)createNavCenterSilderWithNames:(NSArray *)names withBlock:(void (^)(NSInteger index))block isWider:(BOOL)wider;
- (void)setCenterNavSelectIndex:(NSInteger)index;
- (void)centerNavClick:(UIButton *)button;

@end
